﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Devida/Siste.master" AutoEventWireup="false" CodeFile="PAC.aspx.vb" Inherits="Devida_PAC" Theme="Yahoo-Ocean"  %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register src="ucAlerta.ascx" TagName="Alerta" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
   <base target="_self" />
<link href="../css/EstilosFrm.css" type="text/css" rel="stylesheet" /> 
   <link href="../css/i_consultas.css" type="text/css" rel="stylesheet" />
   <link href="../css/diseno.css" type="text/css" rel="Stylesheet" />
    <link href="../css/style2.css" type="text/css" rel="stylesheet" />
    <link href="../css/StyleSheet.css" type="text/css" rel="stylesheet" />
    
    <script src="../js/jsForms/js_Consulta.js" type="text/javascript"></script>
    <script src="../js/js_windowpopup.js" type="text/javascript"></script>
    <script language="javascript" src="../Script/PrintScript.js" type="text/javascript"> </script>
      <script language="javascript" type="text/javascript">
          function AcceptNum(evt) {
              var nav4 = window.Event ? true : false;
              var key = nav4 ? evt.which : evt.keyCode;
              return (key <= 13 || (key >= 48 && key <= 57) || key == 44);
          }        
    </script>
        <script language="javascript" type="text/javascript">
            function AcceptNum2(evt) {
                var nav4 = window.Event ? true : false;
                var key = nav4 ? evt.which : evt.keyCode;
                return (key <= 13 || key == 47 || (key >= 48 && key <= 57);
            }        
    </script>
    <script language="javascript" type="text/javascript">


        function Resaltar_On(GridView) {
            if (GridView != null) {
                GridView.originalBgColor = GridView.style.backgroundColor;
                GridView.style.backgroundColor = "#5BADFF";
            }
        }

        function Resaltar_Off(GridView) {
            if (GridView != null) {
                GridView.style.backgroundColor = GridView.originalBgColor;
            }
        }
    
    </script>
     
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            height: 9px;
        }
    </style>
     
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_name" Runat="Server">
<asp:Label ID="Label1" runat="server" Font-Names="Arial"
                        Font-Size="17px" ForeColor="white" Text="PAC" 
                        Font-Bold="True" ></asp:Label>

</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   <table>                                     
          <tr>   
         <td style="width: 150px" align="left">
            <asp:Label ID="Label2" runat="server" CssClass="label" Text="  Periodo: "></asp:Label>
           <asp:DropDownList ID="ddlPeriodo" runat="server" CssClass="ddl" Width="100px" AutoPostBack="True">
         </asp:DropDownList>
           </td>
              
        </tr>
          <tr>
            <td>
                    <table cellpadding="0" cellspacing="0" style="width: 900px; height: 300px;">
                    <tr>
                        <td>
                        <div  style="border: solid 1px #99aabd; width: 900px; height: 350px; overflow: auto;"  align="center">
                        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                        <ContentTemplate>
                        <div id="div_grilla" align="center" >                            
                        <asp:GridView ID="gv_pac" runat="server" AutoGenerateColumns="False" ShowHeader="true"
                        CellPadding="0" CellSpacing="0" CssClass="grid" Font-Size="8pt" GridLines="Vertical" Width="1500px" >
                        <RowStyle BackColor="#F7F6F3" Font-Bold="False" ForeColor="#333333" VerticalAlign="Top" />
                        <Columns>
                           <asp:TemplateField ItemStyle-Width="5px">
            <HeaderTemplate  >N°</HeaderTemplate>
                <ItemTemplate>
                    <%# Container.DataItemIndex + 1%>
                    <asp:HiddenField ID="ID_PAC" runat="server" Value='<%# Eval("PAC") %>' />          
                    <asp:HiddenField ID="SEG_PAC" runat="server" Value='<%# Eval("SEG_PAC") %>' />
                    <asp:HiddenField ID="SEM" runat="server" Value='<%# Eval("SEMAFORO") %>' />
                </ItemTemplate>
               </asp:TemplateField>  
                                
                        <asp:BoundField HeaderText="Descripcion Bienes, Servicios Y Obras" DataField="DESCRIPCION_BIENES" ItemStyle-HorizontalAlign="Left" ItemStyle-Width= "380px"  />
                        <asp:BoundField HeaderText="Valor Estimado (S/.)" DataField="VALOR_ESTIMADO" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="70px"/>
                        <asp:BoundField HeaderText="Tipo de Proceso" DataField="TIPO_PROCESO" ItemStyle-HorizontalAlign="center" ItemStyle-Width="50px" />                                             
                        <asp:BoundField HeaderText="Mes Previsto de ejecucion segun PAC" DataField="MES_PREVISTO" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="80px" HtmlEncode="false" DataFormatString="{0:N0}" />                       
                        <asp:BoundField HeaderText="Duracion del Proceso (Días)" DataField="DURACION" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="70px" HtmlEncode="false" DataFormatString="{0:N0}" />                       
                        <asp:BoundField HeaderText="Plazo de Ejecucion (Días)" DataField="PLAZO_EJECUCION" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="70px" HtmlEncode="false" DataFormatString="{0:N0}" /> 
                        <asp:BoundField HeaderText="Fuente de Financiamiento" DataField="FUENTE_FINANCIAMIENTO" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="70px" HtmlEncode="false" DataFormatString="{0:P0}" />                       
                        <asp:BoundField HeaderText="Meta Presupuestal" DataField="META_PRESUPUESTAL" ItemStyle-HorizontalAlign="center" ItemStyle-Width="90px" HtmlEncode="false" DataFormatString="{0:P0}" /> 
                        <asp:BoundField HeaderText="Linea de Acción" DataField="LINEA_ACCION"  ItemStyle-HorizontalAlign="center" ItemStyle-Width="40px"  />    
                        <asp:BoundField HeaderText="Actividad" DataField="ACTIVIDAD"  ItemStyle-HorizontalAlign="Right"  ItemStyle-Width="70px"  />                                                    
                        <asp:BoundField HeaderText="N° Referencia PAC" DataField="NUM_REFERENCIA_PAC" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="80px"/>
                        <asp:BoundField HeaderText="Responsable Tec. Area Usuaria" DataField="RESPONSABLE_AREA" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="90px"/>            
                        <asp:BoundField HeaderText="Responsable Adm. PPER" DataField="RESPONSABLE_PPER" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="90px"/>            
                        <asp:BoundField HeaderText="Responsable Proceso (U. Log)" DataField="RESPONSABLE_PROCESO" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="90px"/>            
                        <asp:BoundField HeaderText="N° Pedido SIGA" DataField="N_PEDIDO_SIGA" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="70px"/>            
                        <asp:BoundField HeaderText="N° Hoja Tramite" DataField="N_HOJA_TRAMITE" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px"/>            
                        <asp:BoundField HeaderText="SEM." DataField="SEMAFORO"  ItemStyle-HorizontalAlign="Left" ItemStyle-Width="40px"/>            
                        <asp:BoundField HeaderText="CONDICIÓN" DataField="PERIODO"  ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px"/>            
                        <asp:BoundField HeaderText="Accion" DataField="ACCION" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px"/>            
                        <asp:BoundField HeaderText="Comentario" DataField="COMENTARIO" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px"/>            
                        <asp:CommandField ShowSelectButton="false" Visible="False" />
                    </Columns>
                        <SelectedRowStyle BackColor="#5BADFF" Font-Bold="True" ForeColor="#333333" />
                        <AlternatingRowStyle BackColor="#CEDAF2" ForeColor="#003366" />
                        <PagerStyle BackColor="#336699" Font-Bold="True" Font-Names="Verdana" Font-Size="10px" ForeColor="White" HorizontalAlign="left" Wrap="False" />
                    </asp:GridView>
                        </div>
                               </ContentTemplate>
                               </asp:UpdatePanel >
                          </div>                         
                        </td>
                    </tr>
                </table>
                    </td>
         </tr>    
          <tr><td>
              <table width="900px" cellpadding="0" cellspacing="0">
                  <tr>
                      <td width="100px" style="text-align:left; vertical-align:top;">
                          <asp:ImageButton ID="btnAgregar" runat="server" ImageUrl="~/Imagenes/btnIngresar.png"
                              ToolTip="a]gregar Avance Financiero Semanal" Height="22px" />
                      </td>
                      <td width="700px" style="text-align:left; vertical-align:top;">
                        <asp:ImageButton ID="btnModificar" runat="server" ImageUrl="~/Imagenes/btnModificar.png" ToolTip="Salir" />
                      </td>
                      <td width="100px" style="text-align:right; vertical-align:top;">
                        <asp:ImageButton ID="ibn_salir" runat="server" ImageUrl="~/Imagenes/btnSalir.png" ToolTip="Salir" />
                      </td>
                  </tr>
              </table>
          </td></tr>
    </table>

<uc1:alerta id="alerta" runat="server"></uc1:alerta>
</asp:Content>

